﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Scrobbler
{
    [Serializable]
    [XmlRoot(Namespace = "")]
    public class Configuration : IConfiguration, ICloneable
    {
        [XmlElement]
        public bool UseLastfm { get; set; }

        [XmlElement]
        public string LastfmUsername { get; set; }

        [XmlElement]
        public string LastfmPassword { get; set; }

        [XmlElement]
        public string ProxyAddress { get; set; }

        public object Clone()
        {
            return new Configuration
                       {
                           UseLastfm = UseLastfm,
                           LastfmUsername = LastfmUsername,
                           LastfmPassword = LastfmPassword,
                           ProxyAddress = ProxyAddress,
                       };
        }
    }
}
